#!/bin/sh
# 烧写https//gitee.com/zhou-chunyuan/u-boot-tiny210到SD卡
string1="/dev/sdb"
string2=$(ls /dev/sdb)
if [ "$string1" == "$string2" ]
then
	sudo dd iflag=dsync oflag=dsync if=./BL1/BL1.bin of=/dev/sdb seek=1
	sudo dd iflag=dsync oflag=dsync if=./u-boot-tiny210/u-boot.bin of=/dev/sdb seek=49
else
    echo "$string1  not exists"
fi


